<?php

use Illuminate\Support\Facades\Route;

/**
 * 康岩松路由
 */

Route::group(['namespace' => 'Api\v1'], function () {

    /**
     * 商品模块
     */
    //商品删除
    Route::get('GoodsDel', 'GoodsController@GoodsDel');
    //商品展示
    Route::get('GoodsList', 'GoodsController@GoodsList');
    //商品详情
    Route::get('GoodsDetail', 'GoodsController@GoodsDetail');
    //商品信息搜索
    Route::get('GoodsSeek', 'GoodsController@GoodsSeek');

    Route::get('GoodsSearch', 'GoodsController@GoodsSearch');
    //商品修改
    Route::post('GoodsUpdate', 'GoodsController@GoodsUpdate');
    //商品添加
    Route::post('GoodsAdd', 'GoodsController@GoodsAdd');

    /**
     *前台登录
     */

    //发送验证码
    Route::post('verification', 'LoginController@verification');
    //验证验证码
    Route::get('verificationCode', 'LoginController@verificationCode');


    /**
     * 后台登录
     */
    //登录页面
    Route::get('index', 'LoginController@index');

    Route::post('login','LoginController@login');

    Route::get('show','LoginController@show');

    /**
     * 经纪人模块
     */
    Route::get('brokerList','BrokerageController@brokerList');
    Route::get('brokerDetail','BrokerageController@brokerDetail');


    /**
     * 房源模块
     */
    Route::get('detail','HousingController@detail');
    Route::get('houseShow','HousingController@houseShow');

    /**
     * 关注列表
     */
    Route::any('concern','AttentionController@concern');

    /**
     * 改造排行榜
     */
    Route::any('RankAction','RankController@RankAction');
});
